Skip to content

docs(id): align web/hosted/MCP docs with the shipped code (WEB-1..WEB-15) - #13515

Merged
dezren39 merged 1 commit into
mainfrom
lane-aas-13365
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-aas-13365

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Aligns the in-repo ID documentation with the shipped code for all fifteen survey disagreements recorded in #13365 (the ID book already states the code behaviour in each case):

  • WEB-1 / WEB-2 — pkgs/id/WEB.md route table replaced with the full registered surface (54 paths / 58 method bindings in the main router, 10 more in the program-only router). The nonexistent /edit/{hash} and /file/{name} spellings are gone; the editor/view routes are /edit/{*name} and /view/{*name}, with /hash/{hash} as the hash entry point.
  • WEB-3 — Project structure in WEB.md, web/README and the root README rewritten for the crate split (crates/id-web, crates/id-cli, …) and the current frontend modules.
  • WEB-4 — Asset names corrected to what the build emits: main.<hash>.js and styles.<hash>.css (never main.js / main.css).
  • WEB-5 / WEB-6 / WEB-8 — web/README collab wire table completed to tags 0–11 with the Init mode field; connection flow names {doc_id}; empty-text cadence corrected (Ping on each 30 s idle cycle, every 2nd cycle's Ping replaced by the empty text message).
  • WEB-7 — TagEvent examples in WEB.md and web/README now use the serialised lowercase types (set / del / del_all / transfer) and the real transfer fields from / to / count (verified against TagEvent in crates/id-store/src/tags.rs).
  • WEB-9 — hosted-worker README's UserDO route paragraph replaced with the implemented surface: 13 paths / 15 method routes (state, usage, export, KV PUT/GET/DELETE, blobs PUT/GET/DELETE, the bridge routes); metering and caps are implemented, not later steps.
  • WEB-10 — web/README's dist/ is described as it is: contents git-ignored, the directory itself tracked with a .gitkeep.
  • WEB-11 — E2E counts and file list corrected to the spec files on disk: 138 tests across 7 files (autosave 7, basic 20, editor-features 47, file-operations 20, navigation 17, websocket 22, world-surface 5), counted with grep -cE '^\s*(test|it)\('.
  • WEB-12 — Root README Project Structure rewritten for the crate split.
  • WEB-13 — The doc comment on v1_tool_definitions in crates/id-caps/src/mcp_bridge.rs now states that presence.set is pinned but always refused with NoFrameMapping, so a v1 client treats it as a tool that can never succeed. (The pinned surface itself is unchanged.)
  • WEB-14 — The [budgets] table in the server_config module doc comment now lists all five implemented keys, adding app_inbound_bytes_per_second (default 33,554,432) and per_peer_burst_bytes_per_minute (default 8,388,608), both verified in crates/id-cli/src/server_config/parse.rs.
  • WEB-15 — WEB.md gains a Security Layer section: loopback bind default, Host allow-list, Origin check, and the token gate (cookie / Bearer / query), which apply to every route.

Verification

  • Grep oracles after the change: no from_subject, no capitalised TagEvent examples, no /edit/{hash} or /file/{name}, no main.css/main.js asset claims, no {file_path}, no stale 104/208 E2E totals in the touched docs.
  • Rust: cargo test -p id-caps -p id-cli --lib dispatched remotely against this branch (the two .rs changes are doc comments only) — run linked in the issue record.

Refs #13365.


Proof this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…-15)

Corrects the in-repo documentation disagreements recorded in #13365,
where the ID book states the code behaviour and the older docs did not:

- WEB.md: full route table (54 paths / 58 method bindings plus the
  program-only router), replacing the nonexistent /edit/{hash} and
  /file/{name} spellings with /edit/{*name}, /view/{*name}, /hash/{hash};
  crate-split project structure (crates/id-web); hashed asset names
  (main.<hash>.js, styles.<hash>.css) instead of main.js/main.css;
  lowercase TagEvent wire format with from/to/count; a Security Layer
  section (Host allow-list, Origin check, token gate); E2E counts and
  file list as they stand (138 tests across 7 spec files).
- web/README: collab wire table completed to tags 0-11 with the Init
  mode field; connection flow names {doc_id}; empty-text cadence
  corrected (Ping each 30s idle cycle, every 2nd replaced by empty
  text); TagEvent format as above; dist/ described as tracked with a
  .gitkeep (contents ignored), not git-ignored as a directory.
- hosted-worker/README: UserDO route list replaced with the
  implemented surface (13 paths / 15 method routes: state, usage,
  export, KV PUT/GET/DELETE, blobs, bridge).
- README: Project Structure rewritten for the crate split; E2E counts
  corrected to match.
- id-caps mcp_bridge: the v1 surface doc comment now states that
  presence.set is pinned but always refused (NoFrameMapping).
- id-cli server_config: the module doc comment's [budgets] table now
  lists all five implemented keys, adding app_inbound_bytes_per_second
  and per_peer_burst_bytes_per_minute.

Refs #13365.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3c8526b9-4466-4e48-9d29-8c0f988929c8
Commits

Reviewing files that changed from the base of the PR and between 4518255 and e7d511d.

Files selected for processing: 6

  • pkgs/id/README.md
  • pkgs/id/WEB.md
  • pkgs/id/crates/id-caps/src/mcp_bridge.rs
  • pkgs/id/crates/id-cli/src/server_config/mod.rs
  • pkgs/id/hosted-worker/README.md
  • pkgs/id/web/README.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T17:34:04.921767Z e7d511d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 1f9bc15 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-aas-13365 branch November 23, 2026 17:57
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant